package com.yinuo.starter.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties("yinuo.translation.producer")
public class ProducerProperties {

    private boolean enabled = false;

    private String groupName;

    private int sendMsgTimeout = 3000;

    private int retryTimesWhenSendAsyncFailed = 2;  // 发送异步消息失败重试次数

    private boolean retryAnotherBrokerWhenNotStoreOk = true;

    private int maxMessageSize = 4194304;
}
